package com.syni.mdd.sjb.common.component.utils.feign.service.mdd.commonuser;

import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@RequestMapping("/apiUserBusiness")
@FeignClient(value = Constants.MDD_COMMON_USER,path = Constants.MDD_COMMON_USER_PATH)
public interface UserBusinessRestService {

    @GetMapping("/getUserBelongBusinessAssistant")
    RpcResponseVo getUserBelongBusinessAssistant(@RequestParam("userId") Integer userId);

    @GetMapping("/getBusinessUserByUserId")
    RpcResponseVo getBusinessUserByUserId(@RequestParam("userId") Integer userId);
}
